@extends('back.index')
@section('title','读者用户信息管理-后台管理系统')
@section('mian')
    <div style="font-size:14px;padding:20px;" class="modal-content">
        <h2 class="sub-header power_mian">读者用户信息管理</h2>
        <div class="table-responsive">
        <table class="table table-striped">
            <thead>
            <tr>
                <th>id</th>
                <th>昵称</th>
                <th>头像</th>
                <th>手机号码</th>
                <th>性别</th>
                <th>注册时间</th>
                <th>充值总金额</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            @foreach($news as $k)
                <tr>
                    <td>{{$k->id}}</td>
                    <td>{{$k->nickname}}</td>
                    <td>
                        @if($k->icon)
                        <img src="{{asset('/image/home/'.$k->icon)}}"  style="height:100px;width:100px">
                        @else
                            <img src="{{asset('/image/public.jpg')}}"  style="height:100px;width:100px">
                            @endif
                    </td>
                    <td>{{$k->tel}}</td>
                    <td>
                        @if($k->sex==1)
                            男
                            @elseif($k->sex==2)
                            女
                            @elseif($k->sex==4)
                            保密
                            @endif
                    </td>

                    <td>{{date('Y-m-d',$k->regtime)}}</td>
                    <td style="color:Red">
                        @if($k->refill==null)
                         0 元
                        @else
                            {{$k->refill.' 元'}}
                        @endif
                    </td>


                    <td> <a href="{{url('back/read/upreaduser/'.$k->id)}}">修改</a>
                         <a href="{{url('back/read/statuser/'.$k->id)}}">查看订单</a>&nbsp;
                         <a href="{{url('back/read/delreaduser/'.$k->id)}}">删除</a>
                    </td>
                </tr>
            @endforeach
            </tbody>
        </table>
            {{$news->links()}}
    </div>
    </div>
@endsection